<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>精灵图</title>
  <style>
    div{
      width: 215px;
      height: 252px;
      border: 1px solid red;
      background-image: url('./tudou.jpg');
      background-repeat: no-repeat;
      /* 反方向挪动图片,再将外边框变小 */
      background-position: -214px 0px;
    }
    p{
      width: 448px;
      height: 252px;
      border: 1px solid red;
      background-image: url('./tudou.jpg');
      background-repeat: no-repeat;
      background-position: -208px 0px;
    }
  </style>
</head>
<body>
  <!-- 精灵图一般是背景图片 -->
  <div>
  </div>
  <p>

  </p>
</body>
</html>